package com.gupaoedu.springframework.mvcframework.webmvc;

import lombok.Data;

import java.util.Map;

/**
 * projectName: my-springframwork
 * packageName: com.gupaoedu.springframework.mvcframework.webmvc
 * Created: 2019/4/16.
 * Auther: baifc
 * Description:
 */
@Data
public class MyModelAndView {

    private String viewName;

    private Map<String, Object> model;

    public MyModelAndView(String viewName) { this.viewName = viewName; }

    public MyModelAndView(String viewName, Map<String, Object> model) {
        this.viewName = viewName;
        this.model = model;
    }

}
